package com.woniuxy.three.pms.room.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.three.pms.bean.RoomBean;

/**
* @ProjectName: PMS
* @Package: com.woniuxy.three.pms.room.service.IRoomService
* @ClassName: IRoomService 
* @Author:  subai-dhl
* @Description: 房间管理模块 
* @Date: 2019/6/19 16:46 
* @Version: 1.0 版本
* @See：参考版本
*/
public interface IRoomService {

	/**
	* @Method findById 
	* @Author subai-dhl 
	* @Version 1.0
	* @Description 通过房间id查询房间所有信息
	* @Param: roomId 房间id
	* @Return RoomBean
	* @Exception 
	* @Date 2019/6/19 16:46
	*/
	public RoomBean findById(Integer roomId);
	
	/**
	 * @Method findByType 
	 * @Author subai-dhl 
	 * @Version 1.0
	 * @Description 通过房间类型查询房间并分页
	 * @param roomType 房间类型
	 * @param pageNo 分页页码
	 * @param PageSize 每页显示数量
	 * @param hotalId 酒店id
	 * @param RoomStatus 房间状态
	 * @return PageInfo
	 * @Date 2019/6/19 17:05
	 */
	public PageInfo<RoomBean> findByType(Integer roomType,Integer RoomStatus,Integer pageNo,Integer PageSize,Integer hotalId);
	
	

	
	/**
	 * @Method findByRoomNumber
	 * @Author subai-dhl
	 * @Description 通过房间号查询房间信息
	 * @Version 1.0
	 * @param RoomNumber
	 * @param hotalId
	 * @return RoomBean
	 * @Date 2019/6/19 17:12
	 */
	public RoomBean findByRoomNumber(String RoomNumber,Integer hotalId);
	
	/**
	 * @Method addRoom
	 * @Author subai-dhl
	 * @Description 添加房间
	 * @Version 1.0
	 * @param room
	 * @return boolean 
	 * @Date 2019/6/19 17:47
	 */
	public boolean addRoom(RoomBean room);
	
	/**
	 * @Method changeRoom
	 * @Author subai-dhl
	 * @Description 修改房间内容   
	 * @Version 1.0
	 * @param room
	 * @return
	 * @Date 2019/6/19 17:48
	 */
	public boolean changeRoom(RoomBean room);
	
	
	/**
	 * @Method findRoomNumberByRoomType
	 * @Author subai-dhl
	 * @Description 查询某类房间可住数量，除去已删除状态的房间 （效率慢，少用）  
	 * @Version 1.0
	 * @param roomTypeId
	 * @return 该类房间的可住数量
	 */
	public int findRoomNumberByRoomType(Integer roomTypeId);
	
}
